package cn.hhchat.wp.repository;

import cn.hhchat.wp.entity.GroupEntity;
import cn.hhchat.wp.entity.SubscribeRelationEntity;
import cn.hhchat.wp.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created this one by HMH on 2017/10/23.
 */

public interface SubscribeRepository extends JpaRepository<SubscribeRelationEntity, Long> {

    SubscribeRelationEntity findByGroupAndUser(GroupEntity group, UserEntity user);

}
